﻿using System;
using Vowei.Data.Models;
using Vowei.Core.Models;

namespace Vowei.Web.Helpers
{
    public static class IRecursiveExtensions
    {
        /// <summary>
        /// 更改某一个重复实例的设置
        /// </summary>
        /// <param name="oldDateTime">需要更改的某一个实例的日期和时间</param>
        /// <param name="newDateTime">新的日期和时间</param>
        public static void AddException(this IRecursive instance, DateTime oldDateTime, DateTime newDateTime)
        {
            throw new NotImplementedException();
        }        

        /// <summary>
        /// 删除某一个重复实例
        /// </summary>
        /// <param name="value">需要删除的某一个实例的日期和时间</param>
        public static void DeleteInstance(this IRecursive instance, DateTime value)
        {
            throw new NotImplementedException();
        }        

        /// <summary>
        /// 获取指定时间段的所有重复实例,需要考虑删除掉的、和已经修改过的实例
        /// </summary>
        /// <param name="from">起始时间</param>
        /// <param name="to">终止时间</param>
        /// <returns>指定时间段内的实例</returns>
        public static DateTime[] LoadInstances(this IRecursive instance, DateTime from, DateTime to)
        {
            throw new NotImplementedException();
        }        

        /// <summary>
        /// 获取指定时间段的所有重复实例,需要考虑删除掉的、和已经修改过的实例
        /// </summary>
        /// <param name="from">起始时间</param>
        /// <param name="to">终止时间</param>
        /// <returns>指定时间段内的实例</returns>
        public static Ticket[] LoadTickets(this IRecursive instance, DateTime from, DateTime to)
        {
            throw new NotImplementedException();
        }        
    }
}